package com.chaopei.customer_server.controller;

import com.chaopei.customer_server.service.MyService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author yws
 * @Date 2022/4/26 15:28
 */
@RestController
public class MyController {
    @Resource
    MyService myService;
    @RequestMapping("/go")//准备消费了
    public String go(@RequestParam("info") String info){
        String json = myService.getJson(info);
        return "拿到的数据为："+json;
    }
}
